feat: kubectl-style apply command with --dry-run and -o yaml#67
Merged
Conversation
- harness apply -f agent.yaml replaces up and create as primary interface - --dry-run validates config without deploying (gateway, providers, env, image) - -o yaml outputs fully resolved harness YAML with all providers/gateways - -o json outputs machine-readable config summary - --attach flag for interactive TTY (default: headless, flips old up behavior) - --gateway reads OPENSHELL_GATEWAY env var as fallback (#1851 plugin compat) - up, create, render marked as hidden deprecated aliases - test-flow.sh updated to use apply verb - Add upstream conventions to AGENTS.md (output format, credential exclusion, policy schema alignment, provider abstraction, plugin compatibility) - Add .agents/skills/validate/ for codified test matrix - Sequenced CLI refactor plan in TODO.md (4 phases: apply, get/describe, delete, docs)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
harness applyreplacesupandcreateas the primary interface--dry-runvalidates config without deploying (reports pass/fail for gateway, providers, env, image)-o yamloutputs fully resolved harness YAML with all referenced providers and gateways-o jsonoutputs machine-readable config summary--attachflag for interactive TTY (default: headless)--gatewayreadsOPENSHELL_GATEWAYenv var as fallback (#1851 plugin compat)up,create,rendermarked as hidden deprecated aliases with cobraDeprecatedfield.agents/skills/validate/codifies the full test matrixTest plan
go build ./...passesgo test ./...passes (all packages)go vet ./...passesharness apply --dry-runvalidates correctlyharness apply -o yamloutputs resolved configharness upshows deprecation warning